/* 认证页面样式 */
.auth-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.back-button {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    color: #555;
}

.back-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(30, 136, 229, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo {
    width: 60%;
    height: auto;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: 20px;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #1e88e5;
    outline: none;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.eye-icon:hover {
    opacity: 0.8;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.checkbox-label {
    color: #555;
}

.forgot-password {
    color: #1e88e5;
    text-decoration: none;
}

.auth-button {
    width: 100%;
    padding: 14px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #1976d2;
}

.auth-button:active {
    transform: scale(0.98);
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
    min-height: 20px;
}

.auth-footer {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 30px;
}

.register-link, .login-link, .terms-link {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
}

/* 加载状态 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(30, 136, 229, 0.2);
    border-top: 4px solid #1e88e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 8px;
    font-size: 0.85rem;
}

.strength-bar {
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-level {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-level.weak {
    width: 33.33%;
    background-color: #f44336;
}

.strength-level.medium {
    width: 66.66%;
    background-color: #ffa000;
}

.strength-level.strong {
    width: 100%;
    background-color: #4caf50;
}

.strength-text {
    color: #666;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .auth-button {
        padding: 12px;
    }
} 